<?php
class Article extends Object {
	protected $name = 'Товар';
	protected $names = 'Товары';
	
    protected $db_table_name = 'articles';
    protected $db_field_prefix = 'art_';
    
    protected $fields = array(
	   'title'=>array('name'=>'Заголовок', 'type'=>'string', 'editing'=>TRUE, 'not_null'=>TRUE),
	   'photo'=>array('name'=>'Фотография', 'type'=>'image', 'editing'=>TRUE, 'x_size'=>200, 'y_size'=>200),	   
	   'color'=>array('name'=>'Цвет', 'type'=>'string', 'editing'=>TRUE),
	   'weight'=>array('name'=>'Вес', 'type'=>'string', 'editing'=>TRUE),
	   'description'=>array('name'=>'Описание', 'type'=>'html', 'editing'=>TRUE)
    );
}

class ArticleSet extends Set {
    protected $class_name = 'Article';
}
?>